class Car(val yearOfMake: Int, theColor: String) {
    var fueLevel = 100
        private set
    var color = theColor
        set(value) {
            if (value.isBlank()) {
                throw RuntimeException("empty")
            }
            field = value
        }

    init {
        if (yearOfMake < 2000) {
            fueLevel = 90
        }
    }
}

class Person(val first: String, val last: String) {
    var fulltime = true
    var location: String = "-"
    constructor(first:String,last:String,fte:Boolean):this(first,last){
        fulltime = fte
    }
    constructor(first:String,last:String,loc:String):this(first,last,false){
        location = loc
    }

    override fun toString(): String {
        return "$first$last$fulltime$location"
    }
}

println(Person("Jane","Doe"))
println(Person("Jane","Doe",false))
println(Person("Jane","Doe","home"))